<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息</title>
    <script src="https://unpkg.com/vue"></script>
    <style>
        .info-box {
            width: 300px;
            margin: 0 auto;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="info-box">
            <h2>个人基本信息</h2>
            <span>姓名：{{ userInfo.name }}</span>
            <span>年龄：{{ userInfo.age }}</span>
            <span>兴趣爱好：{{ userInfo.hobbies.join('、') }}</span>
            <span>专业：{{ userInfo.major }}</span>
        </div>
    </div>

    <script>
        const { createApp } = Vue;
        createApp({
            data() {
                return {
                    userInfo: {
                        name: '胡卓华',
                        age: 18,
                        hobbies: ['吃饭', '睡觉', '打豆豆'],
                        major: '软件技术'
                    }
                }
            }
        }).mount('#app');
    </script>
</body>
</html>